{% macro gen_table(users) %}
    <table id="user-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>用户ID</th>
                <th>手机号</th>
                <th>昵称</th>
                <th>加好友时间</th>
                <th>是否正在关注</th>
                <th>是否关注过微信</th>
                <th>添加人</th>
            </tr>
        </thead>
        <tbody>
            {% for user in users %}
            <tr>
                <td>{{ user.id }}</td>
                <td>{{ user.mobile | encrypt }}</td>
                <td>{{ user.nickname }}</td>
                <td>{{ user.bind_date }}</td>
                <td>{% if user.wx_openid %}是{% else %}否{% endif %}</td>
                <td>{% if user.bind_wx_openid %}是{% else %}否{% endif %}</td>
                <td>{{ user.bind_user_name }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% endmacro %}
